import Layout from '@/views/layout/Layout'

const activityRouter  = {
    path: "/activity",
    component: Layout,
    redirect: "/activity/activity",
    name: "activity",
    alwaysShow: true,
    meta: {
      title: "活动中心",
      icon: "pinggusi",
      // roles: 'activity_center'
    },
    children : [
      {
        path: "/activity/limitedTime",
        component: () => import("@/views/activity/limitedTime/limitedTime"),
        name: "limitedTime",
        meta: {
          title: "限时抢购",
          roles:'time_rush',
        }
      },
      {
        path: "/activity/limitedTime/activityGoods",
        component: () => import("@/views/activity/limitedTime/activityGoods/activityGoods"),
        name: "activityGoods",
        hidden:true,
        meta: {
          title: "添加活动商品",
          roles:'time_rush',
        }
      },
      {
        path: "/activity/attacheList",
        component: () => import("@/views/activity/attacheList/attacheList"),
        name: "attacheList",
        meta: {
          title: "活动专员",
          roles:'attache_list',
        }
      },
      {
        path: "/activity/twoattache",
        component: () => import("@/views/activity/attacheList/twoattache/twoattache"),
        name: "twoattache",
        hidden:true,
        meta: {
          title: "二级专员",
          roles:'attache_list',
        }
      }
    ]
}
export default activityRouter
